package com.dou.yygh.cmn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dou.yygh.model.cmn.Dict;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * Created with IntelliJ IDEA 2021.1 x64
 *
 * @Author: 窦义超
 * @Date: 2021/08/2021/8/24/14:20
 * @Description:
 */
@Service
public interface DictService extends IService<Dict> {
    List<Dict> findChildData(long id);

    void exportDictData(HttpServletResponse response);

    void importDictData(MultipartFile file);

    String getDictName(String dictCode, String value);
    //  根据dictCode获取下级节点
    List<Dict> findByDictCode(String dictCode);
}
